<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="TarifaViewDlg" widgetVar="TarifaViewDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.ViewTarifaTitle}">

            <h:form id="TarifaViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{tarifaController.selected != null}">

                        <h:outputText value="#{bundle.ViewTarifaLabel_id}"/>
                        <h:outputText value="#{tarifaController.selected.id}" title="#{bundle.ViewTarifaTitle_id}"/>

                        <h:outputText value="#{bundle.ViewTarifaLabel_codigo}"/>
                        <h:outputText value="#{tarifaController.selected.codigo}" title="#{bundle.ViewTarifaTitle_codigo}"/>

                        <h:outputText value="#{bundle.ViewTarifaLabel_monto}"/>
                        <h:outputText value="#{tarifaController.selected.monto}" title="#{bundle.ViewTarifaTitle_monto}"/>

                        <h:outputText value="#{bundle.ViewTarifaLabel_fechaInicio}"/>
                        <h:outputText value="#{tarifaController.selected.fechaInicio}" title="#{bundle.ViewTarifaTitle_fechaInicio}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewTarifaLabel_fechaFin}"/>
                        <h:outputText value="#{tarifaController.selected.fechaFin}" title="#{bundle.ViewTarifaTitle_fechaFin}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewTarifaLabel_activo}"/>
                        <h:selectBooleanCheckbox id="activo" value="#{tarifaController.selected.activo}" title="#{bundle.EditTarifaTitle_activo}" required="true" requiredMessage="#{bundle.EditTarifaRequiredMessage_activo}" disabled="true"/>

                        <h:outputText value="#{bundle.ViewTarifaLabel_creationDate}"/>
                        <h:outputText value="#{tarifaController.selected.creationDate}" title="#{bundle.ViewTarifaTitle_creationDate}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewTarifaLabel_createdBy}"/>
                        <h:outputText value="#{tarifaController.selected.createdBy}" title="#{bundle.ViewTarifaTitle_createdBy}"/>

                        <h:outputText value="#{bundle.ViewTarifaLabel_lastUpdateDate}"/>
                        <h:outputText value="#{tarifaController.selected.lastUpdateDate}" title="#{bundle.ViewTarifaTitle_lastUpdateDate}">
                            <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                        </h:outputText>

                        <h:outputText value="#{bundle.ViewTarifaLabel_lastUpdateBy}"/>
                        <h:outputText value="#{tarifaController.selected.lastUpdateBy}" title="#{bundle.ViewTarifaTitle_lastUpdateBy}"/>

                        <h:outputText value="#{bundle.ViewTarifaLabel_idTipoPago}"/>
                        <h:outputText value="#{tarifaController.selected.idTipoPago.descripcion}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{bundle.Close}" onclick="TarifaViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
